<%@ include file="/WEB-INF/jsp/common/include.jsp" %>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="admin" uri="AdminTags" %>
<div>
  <%= request.getParameter("batchText")%>
  <br>
  <a href='<%= request.getParameter("batchUrl")%>'>Execute</a>
  <br>
  <c:set var="counter" value="${counter + 1}" scope="request"/>
  Queue size: <span id='queueSize<c:out value="${counter}"/>'></span>
  <br>
  Correction: <admin:correction key='<%= request.getParameter("batchUrl")%>'/>
</div>
<script>
$(document).ready(function(){
  $.get('<%= request.getParameter("queueSizeUrl")%>', function(data) {
    $('#queueSize<c:out value="${counter}"/>').html(data);
  });
});
</script>
<img src="/image/arrow-down.png"/>